<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>正式学员管理</title>
    <%@include file="../../../static/common/common.jsp" %>
    <script src="/static/js/formalStudent.js"></script>
</head>
<!--非常关键-->
<jsp:include page="/static/style/loader.jsp"></jsp:include>
<body>
<table id="formalStudent_datagrid"></table>
<div id="formalStudent_btns">
    <a class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑</a>
    <a id="changeState_btn" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true"
       data-cmd="del">删除</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="watch">查看</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="changeClass">转班</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="abandon">流失</a>
</div>
<div id="save_btns">
    <a id="save" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" data-cmd="save">保存</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" data-cmd="cancel">取消</a>
</div>
<div id="change_btns">
    <a class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" data-cmd="save_class">提交</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" data-cmd="cancel_class">取消</a>
</div>
<div id="bandon_btns">
    <a class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" data-cmd="save_bandon">提交</a>
    <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" data-cmd="cancel_bandon">取消</a>
</div>
<div id="formalStudent_dialog">
    <form id="formalStudent_form" method="post">
        <input id="formalStudentId" type="hidden" name="id">
        <table align="center" style="margin-top: 15px">
            <tr align="left">
                <th><font color="blue">个人资料</font></th>
            </tr>
            <tr>
                <td>姓名:</td>
                <td><input class="easyui-textbox" name="name">
                <td>年龄:</td>
                <td><input class="easyui-textbox" name="age">
                <td>性别:</td>
                <td><input class="easyui-combobox" name="gender"
                           data-options="data:[{name:'男',value:'1'},{name:'女',value:'0'}],textField:'name',valueField:'value',panelHeight:'auto'"
                ></td>
            </tr>
            <tr>
                <td>电话:</td>
                <td><input class="easyui-textbox" name="tel"
                ></td>
                <td>QQ:</td>
                <td><input class="easyui-textbox" name="qq"
                ></td>
                <td>Email:</td>
                <td><input class="easyui-textbox" name="email"
                ></td>
            </tr>
            <tr>
                <td>学校:</td>
                <td><input class="easyui-textbox" name="schoolName"
                ></td>
                <td>专业:</td>
                <td><input class="easyui-textbox" name="major"
                ></td>
                <td>学历:</td>
                <td><input class="easyui-combobox" name="education"
                           data-options="url:'/dictionaryItem/getItemBySn.do?sn=education',valueField:'id',textField:'name',panelHeight:'auto'"
                ></td>
            </tr>
            <tr>
                <td>地址:</td>
                <td><input class="easyui-textbox" name="address"
                ></td>
                <td>来源:</td>
                <td><input class="easyui-combobox" name="source"
                           data-options="url:'/dictionaryItem/getItemBySn.do?sn=source',valueField:'id',textField:'name',panelHeight:'auto'"
                ></td>
                <td>客户类型:</td>
                <td><input class="easyui-combobox" name="customerType.id"
                           data-options="url:'/dictionaryItem/getItemBySn.do?sn=clientType',valueField:'id',textField:'name',panelHeight:'auto'"
                ></td>
            </tr>
            <tr>
                <td>工龄:</td>
                <td><input class="easyui-textbox" name="workYear"
                ></td>
                <td>选择班级:</td>
                <td><input class="easyui-combobox" name="intentionClass.id"
                           data-options="url:'/classRoom/selectAll.do',valueField:'id',textField:'className',panelHeight:'auto'"
                ></td>
                <td>外语水平:</td>
                <td><input class="easyui-combobox" name="foreignLangLevel"
                           data-options="url:'/dictionaryItem/getItemBySn.do?sn=foreignLangLevel',valueField:'id',textField:'name',panelHeight:'auto'"
                ></td>
            </tr>
            <tr>
                <td>营销人员:</td>
                <td><input class="easyui-combobox" name="salemen.id"
                           data-options="url:'/employee/getSaleMen.do',valueField:'id',textField:'username',panelHeight:'auto'"
                ></td>
                <td>所在校区:</td>
                <td><input class="easyui-combobox" name="intentionArea"
                           data-options="url:'/dictionaryItem/getItemBySn.do?sn=intentionArea',valueField:'id',textField:'name',panelHeight:'auto'"
                ></td>
                <td>入学时间:</td>
                <td><input class="easyui-datebox" name="entranceTime"
                ></td>
            </tr>
            <tr align="left">
                <th><font color="blue">缴费信息</font></th>
            </tr>
            <tr>
                <td>计划学费:</td>
                <td><input class="easyui-textbox" name="programTuition"
                ></td>
                <td>优惠金额:</td>
                <td><input class="easyui-textbox" name="discountAmount"
                ></td>
                <td>其他优惠:</td>
                <td><input class="easyui-textbox" name="otherDiscount"
                ></td>
            </tr>
            <tr>
                <td>其他费用:</td>
                <td><input class="easyui-textbox" name="otherExpense"
                ></td>
                <td>优惠说明:</td>
                <td><input class="easyui-textbox" name="discountExplain"
                ></td>
                <td>总费用:</td>
                <td><input class="easyui-textbox" name="totalTuition"
                ></td>
            </tr>
            <tr>
                <td>预付学费:</td>
                <td><input class="easyui-textbox" name="planTuition"
                ></td>
                <td>已付学费:</td>
                <td><input class="easyui-textbox" name="prepaidTuition"
                ></td>
                <td>还欠学费:</td>
                <td><input class="easyui-textbox" name="debt"
                ></td>
            </tr>
            <tr>
                <td>最后付款时间:</td>
                <td><input class="easyui-datebox" name="finalPayment"
                ></td>
                <td>付款方式:</td>
                <td><input class="easyui-combobox" name="paymentType.id"
                           data-options="url:'/dictionaryItem/getItemBySn.do?sn=paymentType',valueField:'id',textField:'name',panelHeight:'auto'"
                ></td>
                <td>完成付款:</td>
                <td>是<input type="radio" name="completePayment" value="true">&nbsp;否<input type="radio"
                                                                                           name="payment"
                                                                                           value="false"></td>
                </td>
            </tr>
        </table>
</div>
</form>
</div>
<div id="class_dialog">
    <form id="class_form" method="post">
        <input type="hidden" name="id">
        <table align="center" style="margin-top: 15px">
            <tr>
                <td>当前班级</td>
                <td><input class="easyui-combobox" name="intentionClass.id" readonly="true"
                           data-options="url:'/classRoom/selectAll.do?',valueField:'id',textField:'className',panelHeight:'auto'">
                </td>
            </tr>
            <tr>
                <td>转入班级</td>
                <td><input class="easyui-combobox" name="targetClassId"
                           data-options="url:'/classRoom/selectAll.do?',valueField:'id',textField:'className',panelHeight:'auto'">
                </td>
            </tr>
        </table>
    </form>
</div>
<div id="abandon_dialog">
    <form id="abandon_form" method="post">
        <input type="hidden" name="id">
        <table align="center" style="margin-top: 15px">
            <tr>
                <td>当前班级</td>
                <td><input class="easyui-combobox" name="intentionClass.id" readonly="true"
                           data-options="url:'/classRoom/selectAll.do?',valueField:'id',textField:'className',panelHeight:'auto'">
                </td>
            </tr>
            <tr>
                <td>转入班级</td>
                <td><input class="easyui-combobox" name="targetClassId"
                           data-options="url:'/classRoom/selectAll.do?',valueField:'id',textField:'className',panelHeight:'auto'">
                </td>
            </tr>
        </table>
    </form>
</div>
<div id="drain_dialog">
    <form id="drain_form" method="post">
        <input name="id" type="hidden">
        <table align="center" style="margin-top: 15px">
            <tr>
                <td>是否退款:</td>
                <td>是:<input type="radio" value="true" name="refund">否:<input type="radio" value="false" name="refund">
                </td>
            </tr>
            <tr>
                <td>流失阶段:</td>
                <td><input class="easyui-combobox" name="phase.id"
                           data-options="url:'/dictionaryItem/getItemBySn.do?sn=drain',valueField:'id',textField:'name',panelHeight:'auto'">
                </td>
            </tr>
            <tr>
                <td>退款金额:</td>
                <td><input class="easyui-numberbox" name="refundAmount"></td>
            </tr>
            <tr>
                <td>退学原因:</td>
                <td><textarea name="cause"></textarea></td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>
